from fastapi import APIRouter
from src.api.models import AnalysisRequest, AnalysisResult, StandardResponse

router = APIRouter()


@router.post("/", response_model=StandardResponse[AnalysisResult])
async def analysis(request: AnalysisRequest):
    # For now, just return a mock response
    mock_result = AnalysisResult(text="这是分析后的需求文档...")
    return StandardResponse(result=mock_result)
